<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Xpert Feed submission</title>
<style type="text/css">

	html{
	
		margin:0px;
		padding:0px;
		font-family:Verdana, Arial, Helvetica, sans-serif;
	
	}
	
	body{
	
		margin:0px;
		padding:0px;
	
	}
	
	.top_wrapper{

		width:100%; 
		background-color:#F9F9F9; 
		height:44px
	
	}
	
	.text_centre{
		
		width:950px; 
		margin:0 auto; 
		text-align:center;
	
	}
	
	.top_left{
	
		width:500px; 
		float:left; 
		position:relative; 
		text-align:left; 
		font-size:80%; 
		font-weight:bold; 
		color:#434343; 
		padding-top:12px;
	
	}
	
	.top_left span{
		
		border-left:1px solid #D6D6D6; 
		padding:0 10px
	
	}
	
	.top_left span a, .top_right span a{
	
		color:#434343;
		
	}
	
	.top_right{
	
		width:450px; 
		float:right; 
		position:relative; 
		height:100%; 
		text-align:left; 
		font-size:80%; 
		font-weight:bold; 
		color:#434343; 
		padding-top:12px;
	
	}
	
	.top_right span{
		
		border-left:1px solid #D6D6D6; 
		padding:0 10px;
		
	}
	
	.main_wrapper{
	
		float:left; 
		position:relative; 
		width:100%; 
		text-align:center;
	
	}
	
	.page_holder{
	
		width:900px; 
		text-align:left; 
		margin:0 auto; 
		height:100px;
	
	}
	
	.logo{
		
		float:left; 
		position:relative; 
		height:100px; 
		width:149px;
	
	}
	
	.contributors{
	
		float:left; 
		position:relative; 
		height:500px; 
		width:100%; 
		background-color:#FFFFFF;  
		margin-top:20px; 
		text-align:center
	
	}
	
	.contributors a{
	
		color:#7C7C7C; 
		text-decoration:none;
	
	}

	.index_holder{
	
		width:950px; 
		margin:0 auto; 
		text-align:center;
	
	}
	
	.index_left{
	
		width:500px; 
		float:left; 
		position:relative; 
		height:500px; 
		background-color:#FFFFFF; 
		text-align:center;
	
	}
	
	.index_left p{
	
		font-size:80%; 
		font-weight:bold; 
		margin-top:40px;
	
	}
	
	.index_left p a{
	
		color:#434343;
	
	}
	
	.tag_cloud{
	
		width:450px; 
		float:left; 
		position:relative; 
		height:500px; 
		text-align:left
	
	}
	
	.tag_cloud p{
	
		color:#9C8A5A; 
		font-weight:bold; 
		font-size:110%; 
		padding-top:38px;
	
	}
	
	.submit_centre{
	
		width:900px; 
		text-align:left; 
		margin:0 auto; 
		height:100px;
		
	}

</style>
</head>
<body>
	<div class="top_wrapper">
		<div class="text_centre">
			<div class="top_left">
				<span>  
					<a href="http://www.nottingham.ac.uk/xpert/">Back to main page</a>  
				</span>
			</div>
			<div class="top_right">
						<span>  <a href="feedsubmit.php">Submit a link</a>  </span><span>  <a href="rss.php">Subscribe to RSS</a>  </span><span><a href="about.php">About</a></span><span><a href="contributors.php">Contributors</a></span>
			</div>
		</div>
	</div>
	<div class="main_wrapper">
		<div class="submit_centre">
			<div class="logo">
				<img src="http://www.nottingham.ac.uk/xpert/images/logoresults.gif" />
			</div>
<?

	if($_POST['url']!=""){
	
		if($_POST['name']!=""){
		
			if($_POST['institution']!=""){
			
				if($_POST['email']!=""){
				
					if($_POST['xotfeed']=="on"){
					
						$xerte = "true";
					
					}else{
					
						$xerte = "false";
					
					}
	
					mail("cczpl@exmail.nottingham.ac.uk","New Xpert Feed", $_POST['url'] . " " . $_POST['name'] . " " . $_POST['institution'] . " " . $_POST['email'] . " XERTE FEED - " . $xerte);
					
					?>
					
							<p>Thank you for submitting your feed</p>
							
					<?
					
				}else{
				
					?>
					
							<p>You didn't set an email address, please go back and try again</p>
							
					<?
					
				}				
				
			}else{
				
					?>
					
							<p>You didn't provide a contact name, please go back and try again</p>
							
					<?
					
			}				
			
		}else{
				
				?>
					
						<p>You didn't provide a URL, please go back and try again</p>
							
				<?
					
		}
	
	}else{
			
	
		?>
			<h2>
				Feed submission guidelines
			</h2>
			<p>
				Please take steps to use tools such as <a href="http://validator.w3.org/feed/">W3C feed validation</a> to check your feed before submitting. XPERT has some flexibility when handling RSS but better feeds will make this search engine better.
			</p>
			<form action="" method="post" enctype="multipart/form-data">
			<div style="width:50%">
				<p>Please enter the URL for your Feed</p>
			</div>
			<div style="width:85%">
				<input type="text" size="137" name="url" /><br /><br />
			</div>
			<div style="width:50%">
				<p>Please enter your name here</p>
			</div>
			<div style="width:85%">
				<input type="text" size="137" name="name" /><br /><br />
			</div>
			<div style="width:50%">
				<p>Please enter the name of your Institution here</p>
			</div>
			<div style="width:85%">
				<input type="text" size="137" name="institution" /><br /><br />
			</div>
			<div style="width:50%">
				<p>Please enter an email address we can contact you on here</p>
			</div>
			<div style="width:85%">
				<input type="text" size="137" name="email" /><br /><br />
			</div>
			<div style="width:50%">
				<p>Is this feed coming from a Xerte Online Toolkits installtion</p>
			</div>
			<div style="width:85%">
				Yes<input type="radio" size="137" name="xotfeed" value="on" />
				No<input type="radio" size="137" name="xotfeed" value="off" /><br /><br />
			</div>
			<input type="image" src="images/send.gif" />
			</form>
		
		<?
	
	
	}


?>
			</div>
		</div>
	</div>
	<!-- Start - Webtrends tagging -->
<script type="text/javascript"
src="http://www.nottingham.ac.uk/common/webtrends/sdc-advanced-tracking.
js"></script>
<script type="text/javascript">
//<![CDATA[
	var gDomain = "uiwwwwbt01.ad.nottingham.ac.uk";
	var gDcsId  = "dcsuhohgd10000oiqfkmqufiu_6c8f"; // ]]> </script> <script type="text/javascript"
src="http://www.nottingham.ac.uk/common/webtrends/sdc.js"></script>
<noscript><img alt="" border="0" name="dcsimg" width="1" height="1"
src="http://uiwwwwbt01.ad.nottingham.ac.uk/dcsuhohgd10000oiqfkmqufiu_6c8
f/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=8.0.0"
/></noscript>
<!-- End - Webtrends tagging -->

</body>
</html>
